package com.youkeda.yunmusic.web.control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class SongControl {

    @RequestMapping(value = "/song")
    public String songControl(@RequestParam(name = "id", required = false) String songId) {

        if (songId == null) {
            songId = "1";
        }
        if (songId.equals("1")) {
            return "1.html";
        } else {
            return "Other.html";
        }
    }

}
